package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

import java.time.LocalDateTime;

/**
 * <p>
 * ems定时控制配置信息表
 * </p>
 *
 * @author AutoGenerator
 * @since 2023-08-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EmsTimingControlDetail extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 主键自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 定时控制表主键id
     */
    private Integer timingControlId;

    /**
     * iot设备编号
     */
    private String initDeviceCode;

    /**
     * ems设备编号
     */
    private String deviceCode;

    /**
     * 见枚举ditType，只能是遥控/遥调
     */
    private Integer ditType;

    /**
     * 点号
     */
    private String dit;

    /**
     * 下发值
     */
    private String val;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModify;

    /**
     * 是否删除，1已删除
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer deleteFlag;

}
